package Store;

import java.util.*;

public class ShoppingCart {
	
	private ArrayList<Item> list;

	public ArrayList<Item> getList() {
		return list;
	}

	public void addToList(Item item){
		list.add(item);
	}
	
	public void addToList(Item item, int count){
		while(count > 0 ){
			list.add(item);
			count--;
		}
	}
	
	public void removeFromList(Item item){
		list.remove(item);
	}
	
	public void removeFromList(Item item, int count){
		while(count > 0 ){
			list.remove(item);
			count--;
		}
	}

}
